/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.repair.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.core.tenant.mp.TenantEntity;

/**
 * 保养模板实体类
 *
 * @author ysq
 * @since 2022-03-29
 */
@Data
@TableName("blade_maintain_template")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "MaintainTemplate对象", description = "保养模板")
public class MaintainTemplate extends TenantEntity {
	/**
	 * 名称
	 */
	@TableField(value = "`name`")
	private String name;

	/**
	 * 描述
	 */
	@TableField(value = "`desc`")
	private String desc;

	/**
	 * 任务模板类型id
	 */
	@TableField(value = "plan_type")
	private String planType;

	/**
	 * 任务模板类型名称
	 */
	@TableField(value = "plan_type_name")
	private String planTypeName;

	/**
	 * 适用梯形类型id
	 */
	@TableField(value = "apply_elevator_type")
	private String applyElevatorType;

	/**
	 * 适用梯形类型名称
	 */
	@TableField(value = "apply_elevator_type_name")
	private String applyElevatorTypeName;

	/**
	 * 模板层级 1-一级 2-二级
	 */
	@TableField(value = "tier")
	private Integer tier;

	/**
	 * 工作项传递逻辑关系到分类  1-传递 2-不传递
	 */
	@TableField(value = "is_transmit")
	private Integer isTransmit;

	/**
	 * 关联工作项数量
	 */
	@TableField(value = "work_item_count")
	private Integer workItemCount;

	/**
	 * 模板耗时 天
	 */
	@TableField(value = "work_day")
	private Integer workDay;

	/**
	 * 模板耗时 时
	 */
	@TableField(value = "work_hour")
	private Integer workHour;

	/**
	 * 模板耗时 分
	 */
	@TableField(value = "work_min")
	private Integer workMin;

	@TableField(exist = false)
	private Long sceneTypeId;

	@TableField(exist = false)
	private String sceneTypeName;

	@TableField(exist = false)
	private String sceneTypeDesc;
}
